import request from "./request"

//获取平台视频
export function getVideo(){
    return request({
        url:'/data/data'
    })
}

//获取企业视频
export function getCompanyVideo(companyName){
    return request({
        url:'/data/companyData',
        params:{
            companyName
        }
    })

}


//打开单个视频
export function openVideo(id){
    return request({
        url:'/data/data/'+id
    })
}

//下载练习题
export function downloadPractice(id){
    return request({
        url:'/data/downloadPractice/'+id,
    })
}

//获取平台练习题列表
export function getPractice(){
    return request({
        url:'/data/practice'
    })
}

//获取企业练习题列表
export function getCompanyPractice(companyName){
    return request({
        url:'/data/companyPractice',
        params:{
            companyName
        }
    })
}